<!-- 模板 -->
<template>
  <div class="root">
    <div class="nav">
      <img src="../assets/img/study-banner.png" alt="" />
    </div>
    <div class="section">
      <div class="land">
        <div class="landele1 landele">
          最近学习
          <div class="active"></div>
        </div>
        <div class="landele">
          付费课程
          <div class="active"></div>
        </div>
        <div class="landele">
          免费课程
          <div class="active"></div>
        </div>
      </div>
      <div class="photo" @click="goDetail()">
        <div class="photok">
          <img src="../assets/img/study-course1.png" alt="" />
        </div>
        <div class="photoj">
          <div class="photow">
            <div class="photow1">四六级英语火箭班</div>
            <div class="photow2">四六级</div>
          </div>
          <div class="photoz">共26课时|未完结</div>
          <div class="photol">最近学习:2019.08.14 16:30</div>
        </div>
      </div>
    </div>

    <div class="section1">
      <div class="photo">
        <div class="photok">
          <img src="../assets/img/study-course2.png" alt="" />
        </div>
        <div class="photoj">
          <div class="photow">
            <div class="photow1">新人的入职打开方式</div>
            <div class="photow2">职场提升</div>
          </div>
          <div class="photoz">共26课时|未完结</div>
          <div class="photol">最近学习:2019.08.14 16:30</div>
        </div>
      </div>
    </div>

    <div class="section1">
      <div class="photo">
        <div class="photok">
          <img src="../assets/img/study-course3.png" alt="" />
        </div>
        <div class="photoj">
          <div class="photow">
            <div class="photow1">高效学习的方法</div>
            <div class="photow2">考研</div>
          </div>
          <div class="photoz">共26课时|未完结</div>
          <div class="photol">最近学习:2019.08.14 16:30</div>
        </div>
      </div>
    </div>

    <div class="section1">
      <div class="photo">
        <div class="photok">
          <img src="../assets/img/study-course4.png" alt="" />
        </div>
        <div class="photoj">
          <div class="photow">
            <div class="photow1">高效学习的方法</div>
            <div class="photow2">考研</div>
          </div>
          <div class="photoz">共26课时|未完结</div>
          <div class="photol">最近学习:2019.08.14 16:30</div>
        </div>
      </div>
    </div>

    <div class="section1">
      <div class="photo">
        <div class="photok">
          <img src="../assets/img/study-course3.png" alt="" />
        </div>
        <div class="photoj">
          <div class="photow">
            <div class="photow1">高效学习的方法</div>
            <div class="photow2">考研</div>
          </div>
          <div class="photoz">共26课时|未完结</div>
          <div class="photol">最近学习:2019.08.14 16:30</div>
        </div>
      </div>
    </div>
    <Footers :index1="index1"></Footers>
  </div>
</template>
<script>
import Footers from './Footers.vue'
// import request from '../utils/request.js'
export default {
  name: '',
  data() {
    return {
      index1: 3,
    }
  },
  props: [],
  components: { Footers },
  computed: {},
  filters: {},
  methods: {
    goDetail() {
      this.$router.push('./detail')
    },
  },
  created() {},
  mounted() {},
}
</script>
<style lang="less" scoped>
// @import url(); 引入公共css类
.root {
  margin-bottom: 1.2rem;
  font-size: 0.28rem;
  width: 100%;
  background-color: #eeeeee;
  .nav {
    padding: 0.1rem;
    width: 100%;
    img {
      width: 100%;
    }
  }
  .section {
    margin: 0 0.1rem;
    margin-top: 0.2rem;
    background-color: #fff;
    border-radius: 0.2rem;
    .land {
      padding: 0 0.2rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 0.32rem;
      color: #333;
      .landele {
        padding: 0.2rem 0;
      }
      .landele1 {
        position: relative;
        font-weight: 700;
        .active {
          background-color: #fc1e1e;
          width: 0.5rem;
          height: 0.1rem;
          position: absolute;
          bottom: 0;
          left: 50%;
          border-radius: 0.2rem;
          transform: translateX(-50%);
        }
      }
    }
    .photo {
      padding: 0.2rem;
      display: flex;
      .photok {
        width: 2.44rem;
        img {
          width: 100%;
        }
      }
      .photoj {
        margin-left: 0.2rem;
        .photow {
          display: flex;
          align-items: center;
          .photow2 {
            padding: 0.1rem 0.2rem;
            border-radius: 1rem;
            font-size: 0.24rem;
            transform: scale(0.8);
            color: #fff;
            text-align: center;
            background-color: #fb6d4c;
          }
        }
        .photoz {
          margin-top: 0.1rem;
          font-size: 0.24rem;
        }
        .photol {
          margin-top: 0.3rem;
          font-size: 0.24rem;
        }
      }
    }
  }

  .section1 {
    margin: 0 0.1rem;
    margin-top: 0.2rem;
    background-color: #fff;
    border-radius: 10px 10px;
    .land {
      height: 40px;
      border-bottom: 1px solid;
      display: flex;
      align-items: center;
      justify-content: space-around;
      font-size: 16px;
      .landele1 {
        font-weight: bold;
        padding: 5px;
        border-bottom: 2px solid red;
      }
    }
    .photo {
      padding: 0.2rem;
      display: flex;
      .photok {
        width: 2.44rem;
        img {
          width: 100%;
        }
      }
      .photoj {
        margin-left: 0.2rem;
        .photow {
          display: flex;
          align-items: center;
          .photow2 {
            padding: 0.1rem 0.2rem;
            border-radius: 1rem;
            font-size: 0.24rem;
            transform: scale(0.8);
            color: #fff;
            text-align: center;
            background-color: #fb6d4c;
          }
        }
        .photoz {
          margin-top: 0.1rem;
          font-size: 0.24rem;
        }
        .photol {
          margin-top: 0.3rem;
          font-size: 0.24rem;
        }
      }
    }
  }
}
</style>
